//服务层
app.service('uploadService',function($http){
	    	
	//上传图片
	this.uploadFile=function(){
		var formData=new FormData();
	    formData.append("pic",file.files[0]);   
		return $http({
            method:'POST',
            url:"../pic/upload.do",
            data: formData,
            headers: {'Content-Type':undefined},
            transformRequest: angular.identity
        });		
	
	}
		
});
